package com.yunduansing.demo.model.dictionary;

import java.util.List;

import com.yunduansing.demo.entity.DictionaryCategoryEntity;

import lombok.Data;

@Data
public class DictionaryCategoryTreeModel extends DictionaryCategoryEntity {
    /**
    *
    */
    private static final long serialVersionUID = 1L;
    
    private List<DictionaryCategoryTreeModel> children;

    public DictionaryCategoryTreeModel(DictionaryCategoryEntity entity,List<DictionaryCategoryTreeModel> children){
        this.children=children;
        this.setId(entity.getId());
        this.setPid(entity.getPid());
        this.setName(entity.getName());
        this.setSeq(entity.getSeq());
        this.setCode(entity.getCode());
        this.setStatus(entity.getStatus());
    }
}